package com.xjust.service.impl;


import com.xjust.Mapper.DisposalRequestMapper;
import com.xjust.service.DisposalRequestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.time.LocalDateTime;
import java.util.Map;

@Service
public class DisposalRequestServiceImpl implements DisposalRequestService {
    @Autowired
    DisposalRequestMapper disposalRequestMapper;
    //保存处置申请表
    @Override
    public void saveInspectionRequest(Map<String, Object> disposalRequests) {
        LocalDateTime creationTime = LocalDateTime.now();
        disposalRequests.put("creationTime",creationTime);
        disposalRequestMapper.insertDisposalRequest(disposalRequests);
    }
}
